<?php

namespace Fize\SBSPHP\PHP80\L02Attribute;

/**
 * 注解使用
 */
#[MyAttributes(1)]
class MyClass
{

    #[MyAttributes(10)]
    const NAME = 'CFZ';

    #[MyAttributes(100)]
    public int $myProperty;


    public function __construct()
    {
        print "MyClass.<br/>\r\n";
    }

    #[MyAttributes(1000)]
    public function myObject(): void
    {
        print "myObject.<br/>\r\n";
    }

    #[MyAttributes(10000)]
    public function myMethod(): void
    {
        print "myMethod.<br/>\r\n";
    }

}